# coding: utf-8
from . import db, BaseModel


class PptChat(BaseModel):
    __tablename__ = 'ppt_chat'

    auto_id = db.Column(db.Integer, primary_key=True, info='自增主键')
    chat_parent_id = db.Column(db.String(20), info='对话父节点ID')
    chat_id = db.Column(db.String(20), info='当前对话节点ID')
    content = db.Column(db.Text, info='用户需求')
    response = db.Column(db.Text, info='返回内容')
    doc_location = db.Column(db.String(500), info='上传文档路径')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建时间')
